﻿<Window x:Class="WPFHostsWin32.MainWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="WPF Hosts Win32" Height="300" Width="300">
    <Grid>
    	<Grid.ColumnDefinitions>
    		<ColumnDefinition Width="Auto"/>
    		<ColumnDefinition Width="*"/>
    	</Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
			<RowDefinition Height="Auto" />
            <RowDefinition Height="*" />
            <RowDefinition Height="25" />
			<RowDefinition Height="25" />
			<RowDefinition Height="25" />
			<RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
        <TextBlock Text="Win32 ListBox:" FontWeight="Bold" VerticalAlignment="Top" Margin="5,0,5,0" />
    	<Border x:Name="ControlContent" Grid.Row="1" Grid.ColumnSpan="2" Background="#FFD6D6D6" Margin="5,5,5,5"/>
        <TextBlock Text="Selected Text:" VerticalAlignment="Center" Grid.Row="2" Margin="5,0,5,0" FontWeight="Bold" />
        <TextBlock x:Name="SelectedText" VerticalAlignment="Center" Grid.Row="2" Grid.Column="1" />
        <TextBlock Text="Number of Items:" VerticalAlignment="Center" Grid.Row="3" Margin="5,0,5,0" FontWeight="Bold" />
        <TextBlock x:Name="ItemCount" VerticalAlignment="Center" Grid.Row="3" Grid.Column="1" />
        <TextBlock Text="Item Text:" VerticalAlignment="Center" Grid.Row="4" Margin="5,0,5,0" FontWeight="Bold" />
        <TextBox x:Name="ItemText" VerticalAlignment="Center" Grid.Row="4" Grid.Column="1" Margin="0,0,5,0" />
        <StackPanel Grid.Row="5" Orientation="Horizontal" Margin="5,5,5,5" Grid.RowSpan="1" Grid.ColumnSpan="2" HorizontalAlignment="Right">
        	<Button Content="Add" Width="60" Margin="0,0,5,0" Click="AddItem" />
        	<Button Content="Delete" Width="60" Click="DeleteItem" />
        </StackPanel>
        
    </Grid>
</Window>